package com.echat.messagesender.sender.sms.bean.enumclass;

/**
 * Created by chenmohan on 2018/08/15
 *
 * @description
 */
public enum SmsServerName {

    AliCloud(6L) , SmsWay(4L) , Echat253(5L);

    private Long value;

    SmsServerName(Long value) {
        this.value = value;
    }

    public Long value() {
        return this.value;
    }

    public static SmsServerName get(Long platformId){
        Integer id = Integer.valueOf(platformId + "");
        switch (id){
            case 6:
                return AliCloud;
            case 4:
                return SmsWay;
            case 5:
                return Echat253;
        }
        return null;
    }
}
